 <!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    

    <title>{$Think.config.site.title} - 库存管理</title>

    <meta name="keywords" content="{$Think.config.site.keywords}">

    <link href="{$Think.config.site.resource_url}css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/plugins/iCheck/custom.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/animate.min.css" rel="stylesheet">
    <link href="{$Think.config.site.resource_url}css/style.min.css?v=4.0.0" rel="stylesheet">

</head>
<style>
#listtable .fa{
	cursor:pointer;
	color:#1ab394;
	margin-right:1em;
}
th .tag{font-size: 12px; color: #e66c6c; font-weight: normal;}
.ibox-title .tag{font-size: 12px; color: #e66c6c; font-weight: normal; display: inline-block; margin-left: 20px;}
.specval-hide{display: none;}
</style>
<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">

      <div class="row">
          <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>商品列表</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                        	<div class="col-sm-6">
                        		<span class="btn btn-primary m-l"></span> 入库
                        		<span class="btn btn-warning m-l"></span> 出库
                        	</div>
                        </div>
                        <div class="table-responsive">
                            <table class="table table-striped" id="listtable">
                                <thead>
                                    <tr>
                                        <th width="30"></th>
                                        <th width="100">商品图片</th>
                                        <th width="">商品名称</th>
                                        <th width="100">数量</th>
                                        <th width="100">单价</th>
                                        <th width="200">时间</th>
                                        <th width="100">操作员</th>
                                        <th width="">备注</th>
                                    </tr>
                                </thead>
                                <tbody>

                                	{volist name="list" id="vo"}
                                    <tr>
                                    	{if($vo['type'] > 0)}
                                    	<td class="btn-primary">入</td>
                                    	{else}
                                    	<td class="btn-warning">出</td>
                                    	{/if}
                                        <td><img src="{$vo.picture}" class="preview" href="{$vo.picture}" title="{$vo.goods_name}" width="30" height="30"></td>
                                        <td>{if condition="$vo.brand_name!=''"}（{$vo.brand_name}）{/if}{$vo.goods_name}【{$vo.specval_name}】</td>
                                        <td data-field="stock_num" class="jedit">{$vo.num}</td>
                                        <td data-field="lastent_price" class="jedit">{$vo.price}</td>
                                        <td>{$vo.time}</td>
                                        <td>{$vo.uname}</td>
                                        <td>{$vo.remark}</td>
                                    </tr>
                                   {/volist}

                                </tbody>
                            </table>
                        </div>
                        <div>{$list->render()}</div>
                    </div>
                </div>
            </div>

        </div>
    </div>

    <script src="{$Think.config.site.resource_url}js/jquery.min.js?v=2.1.4"></script>
    <script src="{$Think.config.site.resource_url}js/bootstrap.min.js?v=3.3.5"></script>

    <script src="{$Think.config.site.resource_url}js/plugins/layer/layer.js"></script>
    <script src="{$Think.config.site.common_resource_url}js/majax.js"></script>
    <script src="{$Think.config.site.common_resource_url}js/jedit.js"></script>

    <script src="{$Think.config.site.resource_url}js/jquery.imagePreview.1.0.js"></script>
</body>

</html>
<script>
	$(function(){
		$("img.preview").preview();
	})
</script>